﻿using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;

namespace Fadada.FASC.SDK.DotNetCore.Model
{
    public class DocTemplate
    {
        /// <summary>
        /// 文档模板id，长度最大20个字符。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "docTemplateId", Required = Required.Always)]
        [MaxLength(20)]
        public string DocTemplateId { get; set; }

        /// <summary>
        /// 文档模板名称，长度最大100个字符
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "docTemplateName", Required = Required.Always)]
        [MaxLength(100)]
        public string DocTemplateName { get; set; }

        /// <summary>
        /// 文档模板状态：invalid: 停用valid: 启用停用的模板无法发起签署。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "docTemplateStatus", Required = Required.Always)]
        public string DocTemplateStatus { get; set; }

        /// <summary>
        /// 创建时间。格式为：Unix标准时间戳，精确到毫秒。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "createTime", Required = Required.Always)]
        public string CreateTime { get; set; }

        /// <summary>
        /// 更新时间。格式为：Unix标准时间戳，精确到毫秒。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "updateTime", Required = Required.Always)]
        public string UpdateTime { get; set; }
    }
}